package com.aolong.archives.core.sysmanage.service.impl;

import net.sf.json.JSONObject;

import com.aolong.archives.core.sysmanage.dao.II18nResourceDao;
import com.aolong.archives.core.sysmanage.service.II18nResourceService;
import com.rock.platform.service.BaseService;

public class I18nResourceService extends BaseService implements
		II18nResourceService {

	private II18nResourceDao dao;
	
	public void add(JSONObject jo, String language) {
		String key = jo.getString("key");
		String text = jo.getString("text");
		this.dao.add(key,text,language);
	}

	public II18nResourceDao getDao() {
		return dao;
	}

	public void setDao(II18nResourceDao dao) {
		this.dao = dao;
	}

}
